package com.jianyushe.mysqltest.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * <p>
 * 教师表
 * </p>
 *
 * @author Alvin
 * @since 2022-05-08
 */
@ApiModel(value = "Teacher对象", description = "教师表")
public class Teacher implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("教师号")
    @TableId
    private String tno;

    @ApiModelProperty("教师名")
    private String tname;

    public String getTno() {
        return tno;
    }

    public void setTno(String tno) {
        this.tno = tno;
    }
    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    @Override
    public String toString() {
        return "Teacher{" +
            "tno=" + tno +
            ", tname=" + tname +
        "}";
    }
}
